package com.czy.owner.entity;

import android.view.View;

import java.io.Serializable;

/**
 * Created by King on 2016/10/26 0026.
 */
public class WebViewRequestParam implements Serializable {
    private String url = "";                                                                        //请求地址
    private String params = "";                                                                     //请求参数
    public static final int REQUEST_POST = 1;                                                       //POST请求
    public static final int REQUEST_GET = 2;                                                        //GET请求
    private int requestMethod = REQUEST_POST;                                                       //请求方式
    private WebViewListener webViewListener = null;                                                 //网页监听器
    private String title;

    public WebViewRequestParam() {
        this.requestMethod = REQUEST_POST;
    }

    public WebViewRequestParam(String url) {
        this();
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public int getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(int requestMethod) {
        this.requestMethod = requestMethod;
    }

    public WebViewListener getWebViewListener() {
        return webViewListener;
    }

    public void setWebViewListener(WebViewListener webViewListener) {
        this.webViewListener = webViewListener;
    }

    public interface WebViewListener {
        void onClick(View v);
    }

}
